/**
 *
 */
package com.oceansoft.mobile.econsole.modules.advice.persistence;

import com.oceansoft.mobile.econsole.modules.advice.entity.Advice;
import com.oceansoft.mobile.econsole.modules.apps.entity.AppDownload;
import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 意见投诉mapper
 *
 * @author jin.xu
 * @version 2014-08-06
 */
@Repository
public interface IAdviceMapper {
    /**
     * 分页加载
     *
     * @param query
     * @return
     */
    public List<Advice> findAdviceListByPage(Query query);

    /**
     * 根据主键查询
     *
     * @param adviceId
     * @return
     */
    public Advice findAdviceById(int adviceId);

    /**
     * 删除某一意见投诉
     *
     * @param adviceId
     * @return
     */
    int deleteAdviceById(int adviceId);

    /**
     * 新增意见投诉
     *
     * @param advice
     * @return
     */
    int save(Advice advice);

    /**
     * 更新意见投诉
     *
     * @param advice
     * @return
     */
    int update(Advice advice);
    
    int updateStatus(Advice advice);
    
    public List<Advice> findExeclByCondition(Query query);
}
